-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DurationFormatter: Duration Formatter Digital Implementation #5263
DurationFormatter: Duration Formatter Digital Implementation #5263
Conversation
585c79b
to
6cb98f9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good start!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good start, send the piece of code for decimal.rs
in a different PR and lets discuss this PR today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix CLI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved but I agree it would be nice to pull the fixed_decimal change into its own PR that lands before this one
Filed #5319 for fixed_decimal bug fix, and reverted the change in this PR. |
and add testdata
add documentation to hour and minute format
previously using incorrect function to set maximum fractional digits
3225183
to
9d6cb8b
Compare
impl DurationSign { | ||
pub(crate) fn as_fixed_decimal_sign(&self) -> fixed_decimal::Sign { | ||
match self { | ||
DurationSign::Positive => fixed_decimal::Sign::Positive, | ||
DurationSign::Negative => fixed_decimal::Sign::Negative, | ||
} | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in a following PR:
impl DurationSign { | |
pub(crate) fn as_fixed_decimal_sign(&self) -> fixed_decimal::Sign { | |
match self { | |
DurationSign::Positive => fixed_decimal::Sign::Positive, | |
DurationSign::Negative => fixed_decimal::Sign::Negative, | |
} | |
} | |
} | |
impl As<fixed_decimal::Sign> for DurationSign { | |
fn as(&self) -> Sign { | |
match self { | |
DurationSign::Positive => fixed_decimal::Sign::Positive, | |
DurationSign::Negative => fixed_decimal::Sign::Negative, | |
} | |
} | |
} | |
Blocked on merging #5208